﻿using System.Collections.Generic;
using System.ComponentModel;

namespace WindowsAPI.Windows
{
    public class WindowsList : BindingList<Window>
    {
        //private bool f_UpdateState;
        //private bool f_HasChanges;

        public WindowsList() { }
        public WindowsList(IEnumerable<Window> windows)
            : base(new List<Window>(windows)) { }

        public Window[] ToArray() { return new List<Window>(this).ToArray(); }

        public void AddRange(IEnumerable<Window> Items) { foreach(var i in Items) Add(i); }

        //public void BeginUpdate()
        //{
        //    f_UpdateState = true;  
        //}

        //public void EndUpdate()
        //{
        //    f_UpdateState = false;
        //    if(f_HasChanges) On``
        //}
    }
}
